package com.loyin.controller;

import com.et.mvc.Controller;
import com.et.mvc.filter.BeforeFilter;
import com.loyin.model.UserInfoVo;

//@BeforeFilter(execute="auth")
public class ApplicationController extends Controller
{
	public int pagesize = 15;

	protected void auth()
	{
		try
		{
			UserInfoVo userinfovo = (UserInfoVo) session.getAttribute("user_session");
			if(userinfovo==null)
			{
				redirect("/userinfo/loginform.jsp" );
			}
		}
		catch(Exception ex)
		{
			ex.printStackTrace();
		}
	}

}
